package com.mark.maven.service.order.query.resp;

import com.mark.maven.service.order.create.resp.CreateOrderResponse;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class QueryOrderResponse<T> {
    private String code;
    private String message;
    private T data;

    public static <T> QueryOrderResponse<T> ofSuccess(T data) {
        QueryOrderResponse<T> response = new QueryOrderResponse<>();
        response.setCode("1");
        response.setMessage("success");
        response.setData(data);
        return response;
    }
}
